//
//  SSPerson.h
//  Secret Santa
//
//  Created by Andrew Cain on 12/10/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "SSChristmas.h"

@interface SSPerson : NSManagedObject {

}

- (NSString *)email;
- (void)setEmail:(NSString *)value;
//- (BOOL)validateEmail: (id *)valueRef error:(NSError **)outError;

- (NSString *)name;
- (void)setName:(NSString *)value;
- (BOOL)validateName: (id *)valueRef error:(NSError **)outError;

- (void)addCannotGiveToObject:(SSPerson *)value;
- (void)removeCannotGiveToObject:(SSPerson *)value;

- (void)addCannotReceiveFromObject:(SSPerson *)value;
- (void)removeCannotReceiveFromObject:(SSPerson *)value;


- (SSPerson *)giveTo;
- (void)setGiveTo:(SSPerson *)value;
- (BOOL)validateGiveTo: (id *)valueRef error:(NSError **)outError;


- (SSChristmas *)myChristmas;
- (void)setMyChristmas:(SSChristmas *)value;
- (BOOL)validateMyChristmas: (id *)valueRef error:(NSError **)outError;

- (SSPerson *)giveTo;
- (void)setGiveTo:(SSPerson *)value;
- (BOOL)validateGiveTo: (id *)valueRef error:(NSError **)outError;

- (BOOL) findMatchFrom: (NSMutableArray *) availablePeople;
- (BOOL) sendEmailWithMessage: (NSString *) messageBase withTitle: (NSString *)title;

- (void) deletePerson;
@end
